#include <stdio.h>
#include <math.h>

int main() {
    int N, i;
    double sum = 0.0, mean, sta = 0.0;
    double LIST1[N]; 

    scanf("%d", &N);


    for (i = 0; i < N; i++) {
        scanf("%lf", &LIST1[i]);
        sum += LIST1[i];
    }

    mean = sum / N;

    for (i = 0; i < N; i++) {
        sta += pow((LIST1[i] - mean), 2);
    }

    sta = sqrt(sta / N);

    printf("%.2f %.2f", mean, sta);

    return 0;
}